package view;

import java.awt.Component;
import java.awt.Graphics;
  
  //expand for types of elements
  //text just plain text elements
  //symbol
  //image 
public class TemplateElement extends Component
{
  public String name, type="text", value;
  public int x, y, height, width;
  
  public TemplateElement(String name, int x, int y, int height, int width)
  {
    this.name = name;
    this.x = x;
    this.y = y;
    this.height = height;
    this.width = width;
    
  }
  
  public void update(Graphics g)
  {
    super.update(g);
    g.drawString(value, x, y);
  }
}